package com.ycfmedical.bed.business;

import com.ycfmedical.bed.ApiConfigs;
import com.ycfmedical.bed.service.TLSService;

import android.content.Context;

/**
 * 初始化tls登录模块
 */
public class TlsBusiness {


    private TlsBusiness(){}

    public static void init(Context context){
        TLSConfiguration.setSdkAppid(ApiConfigs.SDK_APPID);
        TLSConfiguration.setAccountType(ApiConfigs.ACCOUNT_TYPE);
        TLSConfiguration.setTimeout(ApiConfigs.IM_TIMEOUT);
        //初始化TLS SDK
        TLSService.getInstance().initTlsSdk(context);
    }

    public static void logout(String id){
        TLSService.getInstance().clearUserInfo(id);

    }
}
